package com.example.springboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@SpringBootApplication
public class SpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootApplication.class, args);
        System.out.println(
                "========================================项目启动成功========================================\n" +
                "                                          _ooOoo_\n" +
                "                                         o8888888o\n" +
                "                                         88\" . \"88\n" +
                "                                         (| -_- |)\n" +
                "                                          O\\ = /O\n" +
                "                                      ____/`---'\\____\n" +
                "                                    .   ' \\\\| |// `.\n" +
                "                                     / \\\\||| : |||// \\\n" +
                "                                   / _||||| -:- |||||- \\\n" +
                "                                     | | \\\\\\ - /// | |\n" +
                "                                   | \\_| ''\\---/'' | |\n" +
                "                                    \\ .-\\__ `-` ___/-. /\n" +
                "                                 ___`. .' /--.--\\ `. . __\n" +
                "                              .\"\" '< `.___\\_<|>_/___.' >'\"\".\n" +
                "                             | | : `- \\`.;`\\ _ /`;.`/ - ` : | |\n" +
                "                               \\ \\ `-. \\_ __\\ /__ _/ .-` / /\n" +
                "                       ======`-.____`-.___\\_____/___.-`____.-'======\n" +
                "                                          `=---='\n" +
                "                       .............................................\n" +
                "                              佛祖保佑             永无BUG");
    }

    // 健康检查的接口
    @GetMapping
    public String health() {
        return "SUCCESS";
    }
}
